//
//  BrokerDataMange.h
//  WGFGlobalHouses
//
//  Created by waiguofang on 15/5/22.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Connect.h"
#import "AddRealCusModel.h"
#import "AddLatentCusModel.h"
#import "OrderApplayModel.h"


@interface BrokerDataMange : NSObject

//获取经纪人信息
-(ResulteMod *)refeshDataBrokerInfoWithCustomerId:(NSInteger)customerId;

//客户列表信息
-(ResulteMod *)refeshDataConsumerListWithCustomerId:(NSInteger)customerId WithPageIndex:(NSInteger)pageIndex WithKeyWord:(NSString *)keyWord WithCustomerState:(NSInteger)state;

//绑定楼盘
-(void)bindpremisesWithCustomerId:(NSString *)customerId WithPremisesIds:(NSString *)premisesIds withCallBack:(FinishCallBack)block;
-(ResulteMod *)bindpremisesWithCustomerId:(NSString *)customerId WithPremisesIds:(NSString *)premisesIds;

//获取楼盘列表
-(ResulteMod *)premiseslistWithUserCode:(NSString *)userCode;

//brokerId：经纪人ID，consumerId：客户ID，status：状态 0，正常，1禁用(经纪人角色，修改客户状态）
-(ResulteMod *)modifyconsumerstatusWithBrokerId:(NSString *)brokderId withcConsumerId:(NSString *)constomerId withStatus:(NSString *)stauts;
//consumerId：当前经纪人ID，potentialId：潜在客户ID（转为真实客户））
-(ResulteMod *)potentialchangtorealWithConsumerId:(NSString *)consumerId withPotentialId:(NSString *)potentialId;

//consumerId：当前经纪人ID，potentialId：潜在客户ID （锁定客户，）
-(ResulteMod *)lockpotentiallWithConsumerId:(NSString *)consumerId withPotentialId:(NSString *)potentialId;

//添加真实客户
-(ResulteMod *)addconsumerWithCustmerModel:(AddRealCusModel *)model withCustomerId:(NSString *)customerId withpotentialId:(NSString *)potentialId;

//添加潜在客户
-(ResulteMod *)ddpotentialconsumerWithPotentialModel:(AddLatentCusModel *)model withcustomerId:(NSString *)customerId;

//编辑潜在客户
-(ResulteMod *)updatepotentialconsumerWithPotentialModel:(AddLatentCusModel *)model withcustomerId:(NSString *)customerId;
//编辑真实客户
-(ResulteMod *)updateconsumerWithCustmerModel:(AddRealCusModel *)model withCustomerId:(NSString *)customerId WithPremiseIds:(NSString *)prmiseIds;

//批量操作（启用，禁用）
-(ResulteMod *)batchmodifystatusWithCustoemrIds:(NSString *)custoemrIds WithcustomerId:(NSString *)customerId WithStatus:(NSString *)stauts;


//线下下单申请
-(ResulteMod *)orderapplyWithOrderModel:(OrderApplayModel *)model;



#pragma mark 添加真实客户获取验证码
-(ResulteMod *)addconsumercaptcha:(NSString *)mobile;

@end
